package cn.gzmli.dtt.common.workflow.entity;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Workflowlog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "workflowlog")

public class Workflowlog implements java.io.Serializable {

	// Fields
	private Integer id;
	private Integer bid;
	private Integer tid;
	private Integer status;
	private String title;
	private String content;
	private Integer processerid;
	private Timestamp createTime;

	// Constructors
	/** default constructor */
	public Workflowlog() {
	}

	/** minimal constructor */
	public Workflowlog(Integer bid, Integer tid, Integer status) {
		this.bid = bid;
		this.tid = tid;
		this.status = status;
	}

	/** full constructor */
	public Workflowlog(Integer bid, Integer tid, Integer status, String title, String content,
                       Integer processerid, Timestamp createTime) {
		this.bid = bid;
		this.tid = tid;
		this.status = status;
		this.title = title;
		this.content = content;
		this.processerid = processerid;
		this.createTime = createTime;
	}

	// Property accessors
	@Id
	@GeneratedValue

	@Column(name = "id", unique = true, nullable = false)

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "bID", nullable = false)

	public Integer getBid() {
		return this.bid;
	}

	public void setBid(Integer bid) {
		this.bid = bid;
	}

	@Column(name = "tID", nullable = false)

	public Integer getTid() {
		return this.tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}

	@Column(name = "status", nullable = false)

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "title")

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "content", length = 1000)

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "processerID", nullable = false)

	public Integer getProcesserid() {
		return this.processerid;
	}

	public void setProcesserid(Integer processerid) {
		this.processerid = processerid;
	}

	@Column(name = "createTime", length = 0)

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}